import request from '@/utils/request'

// 查询应收账单列表
export function listSfBill(query) {
  return request({
    url: '/life/feBill/list',
    method: 'get',
    params: query
  })
}

// 查询应收账单详细
export function getSfBill(id) {
  return request({
    url: '/life/feBill/' + id,
    method: 'get'
  })
}

// 新增应收账单
export function addSfBill(data) {
  return request({
    url: '/life/feBill',
    method: 'post',
    data: data
  })
}


// 修改应收账单
export function updateSfBill(data) {
  return request({
    url: '/life/feBill',
    method: 'put',
    data: data
  })
}

// 删除应收账单
export function delSfBill(id) {
  return request({
    url: '/life/feBill/' + id,
    method: 'delete'
  })
}

// 查询公寓应收账单列表
export function listApartBill(query) {
  return request({
    url: '/life/feApartBill/list',
    method: 'get',
    params: query
  })
}

// 查询公寓应收账单详细
export function getApartBill(id) {
  return request({
    url: '/life/feApartBill/' + id,
    method: 'get'
  })
}

// 新增公寓应收账单
export function addApartBill(data) {
  return request({
    url: '/life/feApartBill',
    method: 'post',
    data: data
  })
}


// 修改公寓应收账单
export function updateApartBill(data) {
  return request({
    url: '/life/feApartBill',
    method: 'put',
    data: data
  })
}

// 删除公寓应收账单
export function delApartBill(id) {
  return request({
    url: '/life/feApartBill/' + id,
    method: 'delete'
  })
}
